<template>
  <div>
    <dc-power-cabinet :deviceData="deviceData" />
  </div>
</template>

<script>
import DCPowerCabinet from "@/components/DCPowerCabinet.vue";

export default {
  components: {
    DCPowerCabinet,
  },
  data() {
    return {
      deviceData: {
    "id": 1,
    "deviceId": "001",
    "deviceName": "汇聚",
    "deviceType": "汇聚",
    "location": "柜体编号",
    "network": "A路",
    "level": 1,
    "hwVersion": "1.1",
    "swVersion": "1.2",
    "status": "状态",
    "temperature": "60",
    "humidity": "30",
    "sd": "烟感",
    "fromDeviceId": "0",
    "uploadTime": "2025-01-21 14:06:14",
    "uid": "1",
    "isEnd": "1",
    "componentUrl": "52236b33-fe36-45bf-9bef-91c759494e19.png",
    "branch": [
        {
            "id": 1,
            "deviceId": "001-1",
            "deviceName": "汇聚分支1",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "在线",
            "temperature": "78",
            "humidity": "19",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": null,
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "183W"
        },
        {
            "id": 2,
            "deviceId": "001-2",
            "deviceName": "汇聚分支2",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "离线",
            "temperature": "78",
            "humidity": "29",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": {
                "id": 1,
                "deviceId": "001-2",
                "deviceName": "汇聚分支2",
                "deviceType": "类型",
                "timestamp": "2025-01-20 10:25:45",
                "location": "位置",
                "alarm": "有",
                "alarmType": "过压",
                "alarmDescription": "告警描述",
                "processStatus": "未处理",
                "processTime": null
            },
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "181.1W"
        },
        {
            "id": 3,
            "deviceId": "001-3",
            "deviceName": "汇聚分支3",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "离线",
            "temperature": "78",
            "humidity": "29",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": {
                "id": 2,
                "deviceId": "001-3",
                "deviceName": "汇聚分支3",
                "deviceType": "类型",
                "timestamp": "2025-01-20 10:25:45",
                "location": "位置3",
                "alarm": "有",
                "alarmType": "过压",
                "alarmDescription": "告警描述3",
                "processStatus": "已处理",
                "processTime": "2025-01-20 10:26:54"
            },
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "181.1W"
        },
        {
            "id": 4,
            "deviceId": "001-4",
            "deviceName": "汇聚分支4",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "离线",
            "temperature": "78",
            "humidity": "29",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": null,
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "181.1W"
        },
        {
            "id": 5,
            "deviceId": "001-5",
            "deviceName": "汇聚分支5",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "在线",
            "temperature": "78",
            "humidity": "29",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": null,
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "181.1W"
        },
        {
            "id": 6,
            "deviceId": "001-6",
            "deviceName": "汇聚分支6",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "离线",
            "temperature": "78",
            "humidity": "29",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": null,
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "181.1W"
        },
        {
            "id": 7,
            "deviceId": "001-7",
            "deviceName": "汇聚分支7",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "在线",
            "temperature": "78",
            "humidity": "29",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": null,
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "181.1W"
        },
        {
            "id": 26,
            "deviceId": "001-8",
            "deviceName": "汇聚分支8",
            "deviceType": "汇聚分支",
            "location": "机房",
            "level": 1,
            "hwVersion": "1",
            "swVersion": "1",
            "status": "离线",
            "temperature": "78",
            "humidity": "29",
            "sd": "烟感",
            "fromDeviceId": "001",
            "deviceInfoId": 1,
            "createTime": "2025-01-21 14:36:44",
            "alarm": null,
            "avoltage": "229V",
            "bvoltage": "221V",
            "cvoltage": "220V",
            "acurrent": "0.7A",
            "bcurrent": "0.6A",
            "ccurrent": "0.6A",
            "apower": "188W",
            "bpower": "187W",
            "cpower": "181.1W"
        }
    ],
    "alarm": {
        "id": 14,
        "deviceId": "001",
        "deviceName": "汇聚",
        "deviceType": "设备类型",
        "timestamp": "2025-01-20 10:25:45",
        "location": "位置",
        "alarm": "有",
        "alarmType": "过压",
        "alarmDescription": "告警描述",
        "processStatus": "未处理",
        "processTime": null
    },
    "avoltage": "223V",
    "bvoltage": "221V",
    "cvoltage": "220V",
    "acurrent": "0.8A",
    "bcurrent": "0.7A",
    "ccurrent": "0.6A",
    "apower": "178W",
    "bpower": "180W",
    "cpower": "179W"
},
    };
  },
};
</script>